x86/mm: Don't allow p2m allocation after memory is allocated.
authorTim Deegan <tim@xen.org>
Thu, 21 Nov 2013 13:02:34 +0000 (13:02 +0000)
committerTim Deegan <tim@xen.org>
Thu, 27 Feb 2014 12:28:41 +0000 (12:28 +0000)
commit6931067c8ef969a55ff4ba8b8d0e8d0ffb8ce0cd
treed34ecc4f191bdbb522ba2c9696d67c26eb587dde
parenta93b8e8ca54cc2c90d9272a06d7944d6ca615d42
x86/mm: Don't allow p2m allocation after memory is allocated.

This avoids a potentially long loop populating the p2m table from the
m2p.  Since there's no reason to turn on translate mode after the
domain is already running, this shouldn't be a problem.

Signed-off-by: Tim Deegan <tim@xen.org>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm/p2m.c